package com.hxz.djbxkj.HxzExecutor.ExecutorCode.Run;

import com.hxz.djbxkj.HxzExecutor.ExecutorCode.JobJk;
import com.hxz.djbxkj.HxzExecutor.ExecutorCode.Run.Abstract.AopJk;
import com.hxz.djbxkj.HxzExecutor.Model.JobMode;
import com.hxz.djbxkj.HxzExecutor.Model.ParameterMode;

public class RunByHxzMethodImp extends RunByHxzMethod implements Runnable {

    public RunByHxzMethodImp(JobJk jk, ParameterMode pm, String id, JobMode jm, AopJk aop) throws Exception{
        super(jk,pm,id,jm,aop);
    }

    @Override
    public void run() {
        super.befor();//执行前
        Object o=null;
        try {
            o=super.DoPlay(this.getJob(),this.getParameter());
        }catch (Exception e){
            super.errer(e);
        }
        super.after(o);//执行后
    }
}
